using System;
using System.Collections.Generic;
using System.Text;

using NHibernate;
using Zwms.Data.Base;
using System.Runtime.Serialization;

namespace Zwms.Data.BusinessObjects
{
    [DataContract]
    public partial class WhWarehouse : BusinessBase<string>
    {
        #region Declarations

        private string _warehouseName = String.Empty;
        private string _city = String.Empty;
        private string _taxType = String.Empty;
        private decimal _acreage = default(Decimal);
        private decimal _yardQty = default(Decimal);
        private string _address = String.Empty;
        private string _zipCode = String.Empty;
        private string _contactor = String.Empty;
        private string _phone = String.Empty;
        private string _fax = String.Empty;
        private string _email = String.Empty;
        private string _createUserCode = String.Empty;
        private string _createUserName = String.Empty;
        private string _createDate = String.Empty;
        private string _createTime = String.Empty;
        private string _editUserCode = String.Empty;
        private string _editUserName = String.Empty;
        private string _editDate = String.Empty;
        private string _editTime = String.Empty;
        private string _isDeactivated = String.Empty;
        private string _remark = String.Empty;

		

        #endregion

        #region Constructors

        public WhWarehouse() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();

            sb.Append(this.GetType().FullName);
            sb.Append(_warehouseName);
            sb.Append(_city);
            sb.Append(_taxType);
            sb.Append(_acreage);
            sb.Append(_yardQty);
            sb.Append(_address);
            sb.Append(_zipCode);
            sb.Append(_contactor);
            sb.Append(_phone);
            sb.Append(_fax);
            sb.Append(_email);
            sb.Append(_createUserCode);
            sb.Append(_createUserName);
            sb.Append(_createDate);
            sb.Append(_createTime);
            sb.Append(_editUserCode);
            sb.Append(_editUserName);
            sb.Append(_editDate);
            sb.Append(_editTime);
            sb.Append(_isDeactivated);
            sb.Append(_remark);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

        [DataMember]
        public virtual string WarehouseName
        {
            get { return _warehouseName.TrimEnd(); }
            set
            {
                OnWarehouseNameChanging();
                _warehouseName = value;
                OnWarehouseNameChanged();
            }
        }
        partial void OnWarehouseNameChanging();
        partial void OnWarehouseNameChanged();

        [DataMember]
        public virtual string City
        {
            get { return _city.TrimEnd(); }
            set
            {
                OnCityChanging();
                _city = value;
                OnCityChanged();
            }
        }
        partial void OnCityChanging();
        partial void OnCityChanged();

        [DataMember]
        public virtual string TaxType
        {
            get { return _taxType.TrimEnd(); }
            set
            {
                OnTaxTypeChanging();
                _taxType = value;
                OnTaxTypeChanged();
            }
        }
        partial void OnTaxTypeChanging();
        partial void OnTaxTypeChanged();

        [DataMember]
        public virtual decimal Acreage
        {
            get { return _acreage; }
            set
            {
                OnAcreageChanging();
                _acreage = value;
                OnAcreageChanged();
            }
        }
        partial void OnAcreageChanging();
        partial void OnAcreageChanged();

        [DataMember]
        public virtual decimal YardQty
        {
            get { return _yardQty; }
            set
            {
                OnYardQtyChanging();
                _yardQty = value;
                OnYardQtyChanged();
            }
        }
        partial void OnYardQtyChanging();
        partial void OnYardQtyChanged();

        [DataMember]
        public virtual string Address
        {
            get { return _address.TrimEnd(); }
            set
            {
                OnAddressChanging();
                _address = value;
                OnAddressChanged();
            }
        }
        partial void OnAddressChanging();
        partial void OnAddressChanged();

        [DataMember]
        public virtual string ZipCode
        {
            get { return _zipCode.TrimEnd(); }
            set
            {
                OnZipCodeChanging();
                _zipCode = value;
                OnZipCodeChanged();
            }
        }
        partial void OnZipCodeChanging();
        partial void OnZipCodeChanged();

        [DataMember]
        public virtual string Contactor
        {
            get { return _contactor.TrimEnd(); }
            set
            {
                OnContactorChanging();
                _contactor = value;
                OnContactorChanged();
            }
        }
        partial void OnContactorChanging();
        partial void OnContactorChanged();

        [DataMember]
        public virtual string Phone
        {
            get { return _phone.TrimEnd(); }
            set
            {
                OnPhoneChanging();
                _phone = value;
                OnPhoneChanged();
            }
        }
        partial void OnPhoneChanging();
        partial void OnPhoneChanged();

        [DataMember]
        public virtual string Fax
        {
            get { return _fax.TrimEnd(); }
            set
            {
                OnFaxChanging();
                _fax = value;
                OnFaxChanged();
            }
        }
        partial void OnFaxChanging();
        partial void OnFaxChanged();

        [DataMember]
        public virtual string Email
        {
            get { return _email.TrimEnd(); }
            set
            {
                OnEmailChanging();
                _email = value;
                OnEmailChanged();
            }
        }
        partial void OnEmailChanging();
        partial void OnEmailChanged();

        [DataMember]
        public virtual string CreateUserCode
        {
            get { return _createUserCode.TrimEnd(); }
            set
            {
                OnCreateUserCodeChanging();
                _createUserCode = value;
                OnCreateUserCodeChanged();
            }
        }
        partial void OnCreateUserCodeChanging();
        partial void OnCreateUserCodeChanged();

        [DataMember]
        public virtual string CreateUserName
        {
            get { return _createUserName.TrimEnd(); }
            set
            {
                OnCreateUserNameChanging();
                _createUserName = value;
                OnCreateUserNameChanged();
            }
        }
        partial void OnCreateUserNameChanging();
        partial void OnCreateUserNameChanged();

        [DataMember]
        public virtual string CreateDate
        {
            get { return _createDate.TrimEnd(); }
            set
            {
                OnCreateDateChanging();
                _createDate = value;
                OnCreateDateChanged();
            }
        }
        partial void OnCreateDateChanging();
        partial void OnCreateDateChanged();

        [DataMember]
        public virtual string CreateTime
        {
            get { return _createTime.TrimEnd(); }
            set
            {
                OnCreateTimeChanging();
                _createTime = value;
                OnCreateTimeChanged();
            }
        }
        partial void OnCreateTimeChanging();
        partial void OnCreateTimeChanged();

        [DataMember]
        public virtual string EditUserCode
        {
            get { return _editUserCode.TrimEnd(); }
            set
            {
                OnEditUserCodeChanging();
                _editUserCode = value;
                OnEditUserCodeChanged();
            }
        }
        partial void OnEditUserCodeChanging();
        partial void OnEditUserCodeChanged();

        [DataMember]
        public virtual string EditUserName
        {
            get { return _editUserName.TrimEnd(); }
            set
            {
                OnEditUserNameChanging();
                _editUserName = value;
                OnEditUserNameChanged();
            }
        }
        partial void OnEditUserNameChanging();
        partial void OnEditUserNameChanged();

        [DataMember]
        public virtual string EditDate
        {
            get { return _editDate.TrimEnd(); }
            set
            {
                OnEditDateChanging();
                _editDate = value;
                OnEditDateChanged();
            }
        }
        partial void OnEditDateChanging();
        partial void OnEditDateChanged();

        [DataMember]
        public virtual string EditTime
        {
            get { return _editTime.TrimEnd(); }
            set
            {
                OnEditTimeChanging();
                _editTime = value;
                OnEditTimeChanged();
            }
        }
        partial void OnEditTimeChanging();
        partial void OnEditTimeChanged();

        [DataMember]
        public virtual string IsDeactivated
        {
            get { return _isDeactivated.TrimEnd(); }
            set
            {
                OnIsDeactivatedChanging();
                _isDeactivated = value;
                OnIsDeactivatedChanged();
            }
        }
        partial void OnIsDeactivatedChanging();
        partial void OnIsDeactivatedChanged();

        [DataMember]
        public virtual string Remark
        {
            get { return _remark.TrimEnd(); }
            set
            {
                OnRemarkChanging();
                _remark = value;
                OnRemarkChanged();
            }
        }
        partial void OnRemarkChanging();
        partial void OnRemarkChanged();

        #endregion
    }
}